home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / e / mailinglists / amigae.0793july.archive / 000089_crash!cup.port….com!Politikill_Tue, 27 Jul 93 16:15:28 PST.msg < prev    next >
Internet Message Format  |  1994-05-26  |  3KB

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Tue, 27 Jul 93 16:15:28 PST
  3. Received: from nova.unix.portal.com by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #15) id m0oKuMP-00002NC; Tue, 27 Jul 93 12:06 PDT
  5. Received: by nova.unix.portal.com (5.65b/4.1 1.383) 
  6.     id AA01278; Tue, 27 Jul 93 12:10:47 -0700
  7. Received: from hobo  by portal.unix.portal.com (1.685) 
  8.     id AA06068; Tue, 27 Jul 93 12:10:43 -0700
  9. Received: by hobo.corp.portal.com (4.1/4.0.3 1.68) 
  10.     id AA11560; Tue, 27 Jul 93 12:10:42 PDT
  11. Return-Path: <Politikill@cup.portal.com>
  12. Lines: 45
  13. Date: Tue, 27 Jul 93 12:10:41 PDT
  14. Message-Id: <9307271210.3.22837@cup.portal.com>
  15. X-Origin: The Portal System (TM)
  16. From: Politikill@cup.portal.com
  17. To: AmigaE@bkhouse.cts.com
  18. Subject: Re: $VER and Workbench Searchpaths
  19.  
  20. >My question was a little different, though.  I'm trying to find out the search
  21. >path for a program that ISN'T Installer.  That is, I'm running a program from
  22. >an icon (any ol' program), and I want that program to have the search path tha
  23. t
  24. >Workbench is using.  How do I get that?  I don't see any convenient way to
  25. >handle it yet.
  26. >
  27. >Y'see, my program accepts an argument to execute a command from within it
  28. >(specifically, my program is a fortune-cookie program, and I am trying to writ
  29. e
  30. >something that will pass a command such as 'more' through to it, so people can
  31. >view the resulting fortune through more.. or muchmore, or a text editor, or
  32. >whatever they want to do with it).  When called from CLI, the spawned CLI
  33. >process gets the same path that the current one has, so I don't have to search
  34. >for it in any way.. AmigaDOS handles it for me.  But, when called from an Icon
  35. ,
  36. >my program doesn't have a search-path passed to it (even though Workbench
  37. >itself has a search path within IT, through which it finds the programs it
  38. >needs to run).  I haven't found a way to get that searchpath.
  39. >
  40. >Does anyone know?
  41. >
  42. >- Trey
  43.  
  44.  
  45.     I was just looking at some source for a system monitor which iconifies
  46. itslef, and I think I may have found what you are looking for. Under 2.0+ I
  47. think the system sets up some sort of variable as PROGDIR: this is where the
  48. program is. So if you do a lock on PROGDIR: and then look inside, I think you
  49. will find everything. This should work. I know most programs I have that fail
  50. because I run them through ARexx while not in the current directory (strange
  51. way, I know) ask for PROGDIR: (Term, Spot....etc)
  52.  
  53.  / / /
  54. /_/_/iZ
  55.  
  56. MODULE 'WiZkId'
  57. PROC main()
  58.   wizkid.inetaddress:='Politkill@cup.portal.com'
  59.   wizkid.realname:='Jeffrey J Peden ]['
  60. ENDPROC
  61.  
  62.  
  63. *-- GammaTag Version 2.8 --*
  64. *-- He's dead Jim. Pass the Ketchup!